﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App_Master/AdminMaster2.master" AutoEventWireup="true" CodeFile="my_cmember_listzj.aspx.cs" Inherits="my_cmember_listzj" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="apply">
  <div class="apply2">
<%--   <uc_left_m:left_menu ID="left_m1" runat="server" />--%>
    <div class="myul_r">
      <div class="mod_pad4">
<div class="hd_admin"><em class="ulimg_admin">用户列表</em></div>            
        <div class="admin_tab_box1">
          <div class="clear"></div>
       <div class="coupons">
            <table class="w top20" width="1000" border="0" cellspacing="0" cellpadding="0">
              <tr class="t">
              <td width="28" class="c">用户ID</td>
              <td width="28" class="c">用户真实姓名</td>
              <td width="26" class="c">当前帐户金额</td>
              <td width="26" class="c">充值金额</td>
                <td width="58" class="c">提现金额</td>
                <td width="28" class="c">中奖金额 </td>
                <td width="32" class="c">购买彩票金额</td>   
              </tr>            
              <%if (list != null && list.Count > 0)
                { %>
                <%for (int k = 0; k < list.Count; k++)
                  { %>
              <tr >
                <td class="cent_align"><%=list[k].user_id%></td>
                 <td class="cent_align"><%=SelectName(list[k].user_id)%></td>
                <td class="cent_align"><%=list[k].total%></td>
                <td class="cent_align"><%=list[k].czTotal%></td>
                 <td class="cent_align"><%=list[k].txTotal%></td>
                 <td class="cent_align"><%=list[k].winTotal%></td>  
                 <td class="cent_align"><%=list[k].buyLotteryTotal%></td>                   
                    </tr>
              <%} %>
              <%}
                else
                { %>
             <tr>
                <td colspan='9'><div class='no_data'>^_^&nbsp;&nbsp;没有符合条件的数据！</div></td>
              </tr> 
              <%} %>             
            </table>
          </div>
          <div class="clear"></div>
        </div>
      </div>
    </div>
    <div class="clear"></div>
  </div>
  <div class="clear"></div>
</div>
<script language="javascript" type="text/javascript">
    function delthe(id) {
        if (confirm("删除后不能恢复！所有此用户相关的数据都会被删除！确定要将此用户删除？")) {
            if (confirm("请再次确认：所有与此用户相关的数据都会被删除！")) {
                jQuery.ajax({
                    url: "/Ajax/Otsql.ashx",
                    data: { t: 'delete_cm', long_eid: id },
                    type: "POST",
                    success: function (data) {
                        if (data + '' == 'True' || data + '' == 'true') {
                            alert("删除成功!");
                            window.location.reload();
                        } else {
                            alert('删除失败，请检查!');
                        }
                    }
                });
            }
        }
    }
</script>
</asp:Content>